﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="SaleOrderRequestDetail.ascx.cs" Inherits="Admin_Components_OrderRequest_SaleOrderRequestDetail" %>


<div class="leftColFull">
   <div class="aroundFull">
<div class="greenText18">Thông tin người đặt hàng</div>
<p style="margin-left:20px;text-align:left;">

Tên khách hàng: <b><asp:Label ID="lblFullName" runat="server"></asp:Label></b><br /><br />
Số điện thoại: <b><asp:Label ID="lblPhoneNumber" runat="server" /></b><br /><br />
Địa chỉ nhận hàng: <b><asp:Label ID="lblAddress" runat="server" /></b><br /><br />
Thời gian giao hàng: <b><asp:Label ID="lblReceiptTime" runat="server" /></b>
</p>
<div class="greenText18">Thông tin đơn hàng</div>
<div class="board">
<asp:GridView ID="gvProduct" Runat="server" AutoGenerateColumns="false" EmptyDataText="Không có dữ liệu"  ShowHeaderWhenEmpty="true">
<Columns>
    <asp:BoundField HeaderText="Tên gạo" DataField="ProductName" HeaderStyle-Width="350px" ItemStyle-Width="350px" ItemStyle-Font-Bold="true">
        <HeaderStyle HorizontalAlign="Center" Width="350px"  />
        <ItemStyle HorizontalAlign="Center" Width="350px" />
    </asp:BoundField>
    <asp:TemplateField HeaderText="Trọng lượng (Kg)" HeaderStyle-Width="100px" ItemStyle-Width="100px">
        <ItemTemplate>
            <asp:Label runat="server" ID="lblWeight" Text='<%# String.Format("{0:#,#.##}", float.Parse(Eval("Weight").ToString() == "" ? "0" : Eval("Weight").ToString()))%>' ></asp:Label>
        </ItemTemplate>
         <HeaderStyle HorizontalAlign="Center" Width="100px"  />
        <ItemStyle HorizontalAlign="Center" Width="100px" />
    </asp:TemplateField>
    <asp:TemplateField HeaderText="Giá bán" HeaderStyle-Width="100px" ItemStyle-Width="100px">
        <ItemTemplate>
            <asp:Label runat="server" ID="lblPrice" Text='<%# String.Format("{0:#,#.##}", float.Parse(Eval("Price").ToString() == "" ? "0" : Eval("Price").ToString()))%>'></asp:Label>
        </ItemTemplate>
        <HeaderStyle HorizontalAlign="Center" Width="100px"  />
        <ItemStyle HorizontalAlign="Center" Width="100px" />
    </asp:TemplateField>
    <asp:TemplateField HeaderText="Thành tiền" HeaderStyle-Width="200px" ItemStyle-Width="200px" >
        <ItemTemplate>
            <asp:Label runat="server" Font-Bold="true" ID="lblAmount" Text='<%# String.Format("{0:#,#.##}", float.Parse(Eval("Amount").ToString() == "" ? "0" : Eval("Amount").ToString()))%>'></asp:Label>
        </ItemTemplate>
        <HeaderStyle HorizontalAlign="Center" Width="200px"  />
        <ItemStyle HorizontalAlign="Center" Width="200px" />
    </asp:TemplateField>
</Columns>
</asp:GridView>
<div id="sumTotal" runat="server" class="sum-total" style="width: 200px; float: right; font-weight: bold;font-size:11pt;margin-right:60px;"></div>
<div style="clear:both"></div>
<div id="divDiscount" runat="server" class="sum-total" style="width: 200px; float: right; font-weight: bold;font-size:11pt;margin-right:60px;"></div>
<div style="clear:both"></div>
<div id="sumPayment" runat="server" class="sum-total" style="width: 200px; float: right; font-weight: bold;font-size:11pt;margin-right:60px;"> </div>

</div><!---board--->
<div class="greenText18">Sản phẩm quà tặng</div>
<div class="board">
<asp:GridView ID="gvPromotion" Runat="server" AutoGenerateColumns="false" EmptyDataText="Không có dữ liệu"  ShowHeaderWhenEmpty="true">
    <Columns>
    <asp:TemplateField HeaderText="STT" ItemStyle-HorizontalAlign="Center">
        <ItemTemplate>
            <%# Container.DataItemIndex + 1 %></ItemTemplate>
        <HeaderStyle Width="50px" />
        <ItemStyle HorizontalAlign="Center" />
    </asp:TemplateField>
    <asp:TemplateField  HeaderText="Hình minh họa">
        <ItemTemplate>
                <asp:Image runat="server"  Width="70px" ID="img" ImageUrl='<%# Eval("Image") %>' ></asp:Image>
        </ItemTemplate>
        <HeaderStyle HorizontalAlign="Center" Width="100px"  />
        <ItemStyle HorizontalAlign="Center" Width="100px" />
    </asp:TemplateField>
    
    <asp:BoundField  ReadOnly="true" HeaderText="Tên quà tặng" DataField="ProductName">
        <HeaderStyle HorizontalAlign="Center" />
        <ItemStyle HorizontalAlign="Center" Font-Bold="true"/>
    </asp:BoundField >
    <asp:TemplateField  HeaderStyle-Width="100px" HeaderText="Loại quà tặng" >
        <ItemTemplate>
            <asp:Label runat="server" ID="lblPromotionPack" Text='<%# Eval("Weight") %>'></asp:Label>
            <asp:Label runat="server" ID="Label1" Text=" (Kg)"></asp:Label>
        </ItemTemplate>
        <HeaderStyle HorizontalAlign="Center" Width="120px"/>
        <ItemStyle HorizontalAlign="Center" Width="120px" />
    </asp:TemplateField>
    <asp:BoundField   HeaderText="Số lượng KM chưa chọn" DataField="PromotionQuantity">
        <HeaderStyle HorizontalAlign="Center" />
        <ItemStyle HorizontalAlign="Center" Width="170px" />
    </asp:BoundField>
    <asp:TemplateField  HeaderText="Số lượng KM đã chọn">
        <ItemTemplate>
            <asp:Label runat="server" ID="lblQuantitySelect" Text='<%# Eval("PromotionQuantitySelect") %>'></asp:Label>
        </ItemTemplate>
        <HeaderStyle HorizontalAlign="Center" Width="120px" />
        <ItemStyle HorizontalAlign="Center" Width="120px" />
    </asp:TemplateField>                     
    </Columns>
    </asp:GridView>
</div><!----board--->

</div>
    </div>
